using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace FileManager.Models
{
    public class FileChatRelation
    {
        [Key]
        public int Id { get; set; }
        
        [Required]
        public int FileId { get; set; }
        
        [Required]
        public int ChatObjectId { get; set; }
        
        // 导航属性
        [ForeignKey("FileId")]
        public virtual FileItem File { get; set; }
        
        [ForeignKey("ChatObjectId")]
        public virtual ChatObject ChatObject { get; set; }



    }
}